package facilius.controller.action.usuariocursoturma;

import facilius.model.ServiceLocator;
import facilius.model.pojo.UsuarioCursoTurma;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.mentawai.core.BaseAction;

/**
 *
 * @author Graciano
 */
public class UsuarioCursoTurmaDeleteAction extends BaseAction {

    @Override
    public String execute() throws Exception {

        String consequence = ERROR;
        try {
            Long idUsuarioCursoTurma = input.getLong("id");
            ServiceLocator.getUsuarioCursoTurmaService().delete(idUsuarioCursoTurma);
            consequence = SUCCESS;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return consequence;
    }
}
